package com.firefightingiot.firefightingiot.config.scheduling;

import com.firefightingiot.firefightingiot.support.utils.MyLogger;
import com.firefightingiot.firefightingiot.web.service.DeviceService;
import org.springframework.scheduling.annotation.Scheduled;

import javax.annotation.Resource;

//@Component
public class TaosiScheduling {

    @Resource
    public MyLogger logger;

    @Resource
    DeviceService deviceService;

    @Scheduled(cron="0 45 18 * * ?")
    public void updateToOff() {
        //deviceService.getDeviceNormalLogAll(new JSONObject());
    }


    public static void main(String[] args) {
        String str="1*1";  //待判断的字符串
        String reg="^[0-9]*[1-9][0-9]*[*][0-9]*[1-9][0-9]*[*][0-9]*[1-9][0-9]*$";  //判断字符串中是否含有ll
        System.out.println(str.matches(reg));
    }
}
